package com.ruoyi.shops.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shops.mapper.ShopReviewsMapper;
import com.ruoyi.shops.domain.ShopReviews;
import com.ruoyi.shops.service.IShopReviewsService;

/**
 * 店铺评论Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-04
 */
@Service
public class ShopReviewsServiceImpl implements IShopReviewsService 
{
    @Autowired
    private ShopReviewsMapper shopReviewsMapper;

    /**
     * 查询店铺评论
     * 
     * @param id 店铺评论主键
     * @return 店铺评论
     */
    @Override
    public ShopReviews selectShopReviewsById(String id)
    {
        return shopReviewsMapper.selectShopReviewsById(id);
    }

    /**
     * 查询店铺评论列表
     * 
     * @param shopReviews 店铺评论
     * @return 店铺评论
     */
    @Override
    public List<ShopReviews> selectShopReviewsList(ShopReviews shopReviews)
    {
        return shopReviewsMapper.selectShopReviewsList(shopReviews);
    }

    /**
     * 新增店铺评论
     * 
     * @param shopReviews 店铺评论
     * @return 结果
     */
    @Override
    public int insertShopReviews(ShopReviews shopReviews)
    {
        return shopReviewsMapper.insertShopReviews(shopReviews);
    }

    /**
     * 修改店铺评论
     * 
     * @param shopReviews 店铺评论
     * @return 结果
     */
    @Override
    public int updateShopReviews(ShopReviews shopReviews)
    {
        return shopReviewsMapper.updateShopReviews(shopReviews);
    }

    /**
     * 批量删除店铺评论
     * 
     * @param ids 需要删除的店铺评论主键
     * @return 结果
     */
    @Override
    public int deleteShopReviewsByIds(String[] ids)
    {
        return shopReviewsMapper.deleteShopReviewsByIds(ids);
    }

    /**
     * 删除店铺评论信息
     * 
     * @param id 店铺评论主键
     * @return 结果
     */
    @Override
    public int deleteShopReviewsById(String id)
    {
        return shopReviewsMapper.deleteShopReviewsById(id);
    }
}
